
import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'
import Index from '../views/Index.vue'
import Message from '../views/Message.vue'
import Recycle from '../views/Recycle.vue'
import messageDetail from '../views/messageDetail.vue'
import messageEdit from '../views/messageEdit.vue'
import messageadd from '../views/MessageAdd.vue'
import toppeopleadd from '../views/ToppeopleAdd.vue'
import ToppeopleDetail from '../views/ToppeopleDetail.vue'
import toppeopleedit from '../views/ToppeopleEdit.vue'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/index',
    name: 'Index',
    component: Index
  },
  {
    path: '/message',
    name: 'Message',
    component: Message
  },
  {
    path: '/recycle',
    name: 'Recycle',
    component: Recycle
  },
  {
    path: '/messagedetail',
    name: 'messageDetail',
    component: messageDetail
  },
  {
    path: '/messageedit',
    name: 'messageEdit',
    component: messageEdit
  },
  {
    path: '/messageadd',
    name: 'messageadd',
    component: messageadd
  },
  {
    path: '/toppeopleadd',
    name: 'toppeopleadd',
    component: toppeopleadd
  },
  {
    path: '/toppeopleedit',
    name: 'toppeopleedit',
    component: toppeopleedit
  },
  {
    path: '/toppeopledetail',
    name: 'ToppeopleDetail',
    component:ToppeopleDetail  
  }
]

const router = new VueRouter({
  routes
})

export default router
